new integration tests added identifying several bugs in math