Added automatic test.