implement tests for #178
be nice to older rails versions
Bumping to version 3.1.8