Improve test code to avoid property access error
Refine indentation