add test for capabilities parsing