Refactoring in minimum_spanning_tree_prim class: code duplication removed
Default mocks replaced with strict mocks
Cleaner code