Added initial test for Adapter.toMap