Correct some bug in numeric class and add some tests