tests: cleanup, use error