Added tests for the previous 2 apis