add scale parameter to track data and fix tests