added function to generate test user