Prepartion for unit testing