test(controller): add unit tests for named function controllers syntax