add tests for reverse iterator functionality