pseudo code for unit tests