unittest fully integrated into the app usermanagement+some changes to fit the new changes