Fixed tests
Merge branch 'master' into heroku