Add spec for api behaviour (rspec + factory_girl)