CMS-3351 Write tests for server side javascript.