Implementing unittests