refine test with quantization error