Implementing underscore methods and tests