tests and problem2