fixed TypeError in test