Fixed controller tests for JS actions