fix tests and make heroku send to remote server