Add testcase class

Explain why \Test\TestCase should be extended, whats important about it and update the samples accordingly.

For reference: owncloud/core#12297