test/power: add unit test for get capabilities API