Improved basic setup

added missing tinytest.h
added check for parameter. without first run results in seg fault