Add unit tests for import and from