test cases for javascript analyzer