Flaks unit test code