fixing bug on services invoke
adding better error on services test