Added tests for Result.php
Tidied code in Connector.php