Added tests for ResultAdapter.php