test: comments some tricky asynchronous error throwing detection and fixes some lint issues