Adding clear cache add count apis
Test quick fix, this must be removed and done properly
Adding tests for child document count