Indeterministic output is usually the fault of the tool. You should check the mapper's documentation to know what the issue might be. As for the test, you should check the strictest thing you can while maintaining a stable snapshot – see module testing docs for details.