[api] Changed initialization of test variables