Configure gem and add tests