Unit tests functional, added first test.