script generating test profile. add two test cases in bugs directory