Added tests for adapter