Add testcases for --no-previous behavior