added ability to mock protocols. added failing tests to match on nil. -James