Test cases for Javascript