before hooks simplify tests
edit category test and method