Split unittests into separate tests/ folder

To run unittests, just run nosetests3 in the top of XD-build core.

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
Add extra unittest test case for better coverage

Signed-off-by: Esben Haabendal <esben@haabendal.dk>