added FailResponse
refactored tests