fixed tests for older browsers