adjusted feature file creator to use when statement for the first testcase