How early can you take a test?

How early can I take a test?