Add unit test pattern and two tests