Add unit test inspired by the readme.