added test cases for error Management. Implementation will change slightly as the project progress