Added tests for simple api