Refactor reprepare statement tests