[fix] - small various fixes
[test] - test for groups - before and after functions are runned