Extensions to rack-test when working with event machine