created invoice parser and fixed tests