Irregular periods and testing

When should I take a test if I have irregular periods and don't know when my next period will be or when I ovulated. Thank you ladies