Fix factory test for track, and create tests for fetching data