functional and unit test examples