Different comparison test for issue 512 that doesn't use Random