refined pseudo and not patterns and test