Seting prob->n correctly.
Add 7 Tests.