Added some tests for core api