fix: tests for serialize/deserialize and form submission of invoice