fixed mock test submit functionality