add tests for base each method