Testing a Repository for Node JS