How do i set membership in testmode

i am trying to test my membership payments with sandbox do i need to change some settings before i can test membership payments with sandbox because i have tried but my sandbox email and pasword where not valid when making the payment therefore do i need to change something somewhere to alow sandbox testing for membership payments?

Cheers.