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.