Test matter in a spacetime with nonmetricity