added method
added test
added result, error to response
added test