changed zero length error message
new integration tests and code formatting