Problem: does not initialize system before running selftest

This fails on Windows. Solution: call zsys_init() at start of
selftest method.

Fixes #542.