karma tests for entities and gateway
added sinon to tests