Added rack-test dependency, added some specs for endpoint