engpattern & some unittests