improved test
added companion object with isSuccess helper function
removed rest and gap for special outcomes