ENH: Reducing test memory consumption

This should reduce test memory consumption substantially. Have addressed a couple individual tests (e.g. in `test_raw`) as per @dengemann's suggestion.