fixed tests with join