add tests for _panic