Implement class check for Imagick, add namespace
Use namespace in test code