Added unit test for invoice controller