fixed tests to work on every jvm