Add manual test code

- Rename #average to #mean
- Fix spec_helper.rb