Preparing unit and functional tests