fixed initialization problem with test