preparation for writing test case using javascript