Fix User reference in tests