Fix obj == null return value and add tests in _.transform