characterization tests
Added test to check for quality > 50

extracted some methods.