Tests improvements

- Introduces BP_Docs_TestCase
- Introduces test for bp_docs_is_existing_doc()
In bp_docs_is_existing_doc(), bail if $wp_query is empty

This is important in case the function is called before init.