work in progress
refactor batch object validation
fix tests and add error prefix to a message