Testing quantum contextuality of continuous-variable states