opimized code and correction test file

Change (Actual,expected) to (extected, actual) in test file