Added basic test cases
Fixed issue with shallow copies being used during stable matching