added rails 4 test application and changed gem to work with it