clean test
fix calculate query for rails 4.1
change to minitest
fix configurable test
fix minitest for ruby 1.8