change test_basic to self-contained tests

I should have done this when I created that module.