Add test unit for test functional generator