Added test and fix for the case if there is a semicolon between import statements.

Additional Checks may be required, so such cases will be reported by checkstyle.