Added unit tests, started logic to load invoice templates.