java: Include attributes in test output. #2