Added test for Prev function