Unit testing for client side todo controller