Fixed parsing bug
Prevented memory leaks. Reduced test size