simple parse and generate test