Migrate to TestNG and clean up test dependencies