added sinon. implementing managers and methods in entity