some rabl helpers for rspec testing