Add support for FEATURES="test"

Just a commit making it possible to run the XBMC test suite. I'm going to be gradually work with the upstream to get all the unit tests passing on Gentoo, which should help improve stability.

[Upstream bug](https://bugs.gentoo.org/show_bug.cgi?id=519118).