Use submodule for the unittest.

Gather all the unit tests and part of the examples in tests.