fixed errors associated with rake spec