add unittest for billing data rest handler, modify rest base handler to return the response instead of instantly sending it