Music service data structure tests

This is the first batch of unit tests for the data structures. The second batch might not be until after further improvements to the data structures, as there is still room for improvement there.
OK, I see. Then I'd recommend to put this into the docstring somewhere...