errors and create test class