Parser implemented as iterator for creating tests + added tests based on test examples