removed settings variable.
reset settings before running the test cases.
fixed variable assignment.