helper added, test cases extracted to seperate .sh