add test

referring to https://github.com/ant0ine/go-json-rest/blob/master/rest/status_test.go