Convert test case to JS.