Converted the test file for Widget RPC from Coffee to JS