Preparing unit test