fixed tests for #671