started converting tests to asserts instead of manual error code inspection