Moved pivot to Transform and added more tests
Fixed center pivot offset