Added condition for counter

Added 2 models for specs
changed ruby version to 2.1.0 and mongoid version to 4.0.0