Added test for throwing an exception ObjectNotFoundException
Added test for throwing an exception MethodNotFoundException