Removed version lock on mocha. Updated test helper.
Version locked rails to 3.x, as test won't run on 4.x
Fixed spelling mistake.
Added tests for class level method.