removing extra space
adding tests for previous commit to #52, also manually adding before_request in application.py so it's testable