refactor(tests): Updated tests and also fixed bug found in require('services') magic module