Add tests and Sinatra app