Add mock Connection object for testing purposes.
Fix the Match.msg function not accepting args properly.
Add some more tests.