Test `create invoice`, and do minor code refactoring
Add rebar.test.config file