Updated code quality of tests