Added NPE protection in transformer name.
Added sleep to test.
Fix to rank test
Fix to test