Fix tests and valuecompressor bug