handled NameError caused by Minitest5
Merge pull request #386 from hsbt/minitest5

Handled NameError with Minitest 5