added tests for controller helpers.