Add some unit tests, add exception on not return Response.