fixed tests so that they consistently pass everywhere