fix structs for study function, add JIT test