added basic tests, removed non-nullterminate option