refactor init/exception test.