In process testing of rack-based REST API