added testcases, script working