added test and standardized test output format