validation tests:try to fix refactor no. 5 & add comments