Refactor mediacheck and memtest tests.
Merge pull request #104 from aplanas/master

Refactor mediacheck and memtest tests.