Basic test and cleanup