Call ResourceSource ctor explicitly.

This ensures that the ResourceSink is set to nullptr, and thus fixes
a nasty segfault if one tries to Emit without one having been set.
Add tests for PlayerState.

Tests for PlayerPosition and, subject to refactoring, PlayerFile
may follow later.