Show the file and line number of deprecation warnings

The warnings are coming from inside the codebase! :scream:
Fix deprecated current_user assignment in testing helper