add output test (needs cleanup)