Fixed bugs in tests.
Update History.txt.
Version 0.4.1.