Remove trailing blank line
Add tests to check -f + -u options together