added tests for _.resolve