removed unnecessary mocha path from test script
fixed bug when overriding services with a different type