Add tests for side effects for import {} from name

Expanded test for #701