Using rspec for test.
Return array