More unit tests, and moved the functional elements from AIControllerImplTest to AutomatedTable.