writing a test system