Furthermore a test should be created to test the expection type. This can not be done easily with jasmine itself. A custom matcher could be created for this (as the infrastructure for custom matchers needs to be created anyways for the `ConnectionManager` tests). The internal test could look something like this:

```javascript
try {
  executeFunction();
  // Fail here as exception hasn't been thrown
} catch(e) {
  expect(e instanceof CAPIError).toBeTruthy()
}
```