changed the exit code when invalid or excess arguments passed
add a strict test case to check the case if invalid or excess arguments passed