Added tests for remove JSON API