add reverse iterator test code