Added some functionality fo tests
Added tests for duplicate matches