move test run into lib
add hapi server