Add test for block validation
[tmp] Fix Gemfile to pass travis-ci