test problems 1-6