UnitTest added - run 3 test ans asserts if failed.

Small bug found and fix in LifeAPI.h.