add tests and routes
add tests and routes