Nonparametric tests for pathwise properties of semimartingales