fixing levenberg test