Added unit testing for loebs controller