improving tests (more automation, and adding syntax tests)