Add WTS API dependency
Test WTS API
Reformat HKM code