fix bug; compare test