Change PatternObject type comparison

- Added MockViewServer
- Added tests