Fixed tests and bossmedia.

The performance improvements caused some test and the boss media
implementation to fail. This have now been resolved.