Added unit tests for models/user.js and models/pages.js