tweaks to checking if gem exists
fix user add gem test
Merge pull request #48 from lauyeung/edit-api

Edit api