Large number of test (dummy) users without license consumption

I am developing function arounds users and groups. Is there a way to create a large number (say 1000) or dummy accounts with dummy email addresses. I want to assign these test accounts to groups that do not consume a license.