Fixed issue with unittests that was caused by weird semantics of unittest block. Now use version(unittest) to declare mock classes for unittests.