Move the method needed only fot testing to spec_helper
Put backend tests under spec/backend directory