tests: scoped_timer test improved (check number of user-defined metrics).