Add pattern test code and text shadow.