Added unit tests for the NameListController