Unit testing – an example