Added feature imports to test code to reduce compiler warnings, and fixed some easy warnings.