Add test cases for Promotion Mechanism
Refactor Stroke class based on the mechanism.