Tests and formatting