More tests for js controller