Convert test case to plain JS.