Add test script
correct error terms
1.0.3