Used RSpec for testing.