tests for adapter