Updated test and utility code

Moved the test directory from the dcmetrometrics package
to the root repo directory.

Updated the test code and utility code.