Unit tests for assume_quality