Adding test for select; refactoring select to be compatible with Mongoose syntax; adding tests for findOne