add minitest-rails gem
fix average mark method
add some tests