added unit test for get_capabilities_as_view