Fixed tests on Ruby 1.8.7
 A :nil seems to be not accepted by Ruby 1.8.7, and using null: results
 in nil transform. So now using key :empty instead of :nil. That should
 fixed ruby 1.8.7.