Use of mocks in C++ unit tests

#### Reviewers
@flopezag 

#### Description
Related to issue #24 

#### Testing
Coverage increased to 94%