Added basic test for setCapability with arrays