Added ACPower use case unit test, fixed some template errors.