confused can anyone help??

Had a miscarriage on 2nd August was 6weeks pregnant! My cycle varies from 35-38 days. First period after miscarriage started 12 sept, and i was supposed to start my period yesterday 21sr october! What is going on?? Shall i take a test or not? Could there be a chance my cycle is messed up now?