added invoice test
minor changes