Add controllers and tests for list_tasks and pref tables