Modified unit tests to adapt to changes in RSpec