Working on the api controller unit tests