Update controller unit tests to use requirejs