reduce memory consumption, check tests