functional test for khaos template