fix buffer overflow in number parser
fix memleak in tests