Added library test suite
Use parent not grandparent for top-level imports

When importing into top-level, use parent environment instead of grandparent.