add api route handlers to route initializer. fix minor errors
setup rest tests infrastructure