Update E402 error message emitted
Add more test cases for E402; issue #304