update study test code