Revert "fix PermGen OutOfMemory in UT"

This reverts commit b80e6dd52b4aaa2aaba4de4c8c1ea89e4243ec41.