Added CSS transform detection and refactored the tests.