Add unit tests for .back() method