adding a test function so that user_approved is set to true