added tests to core api
added unhappy flow tests for type adapters