refactored most specs a little, big rewrite on repo spec to stub promises with success and error