add test for runtime issue 307
Fixes nil regex entries in exec and match. Fixes #307
adds tap test format