refactoring tests with underscore js