Create user agen class, modify test and add allowed hosts