test before committing