How long to wait til getting a fertility test When TTC?

My Spouse and I Have been together for almost 6 years. We have been actively TTC for over 3 years with no luck. I have never used birth control and My periods are sometimes irregular. Any Suggestions?