Test that previousNode properly respects the filter.