Completed automation api controller unit tests
Removed $timeout delays (too hard to test reliably, and honestly unnecessary)