Refactored camresolutiontest to a single class

Sorry for the extra commits, sloppy!
can yu have a temporary variable called config. I find passing that complex object on the method hard to read.

```
var config = {
  audio: false,
  video: {
    ...
  }
};
```