Implement test class for auto tests

Format the source