added test sets and test cases to tests and added debug mode