Fix security controller unit tests