renaming variable for easier reading
refactoring tests for easier code reuse