add cpp tests for integer and half integer templates in power potential