tests: need to log in before importing CSV

This was accidentally introduced in merge commit 4e1c6414.