linted tests
replaced back `err` check with asserts