preparation to unit testing