declare some variables to tidy things up
Was using PUT rather than POST method on Invoice POST test
fix array specification