Move unit tests to separate directory

Move unit tests to tests/unit directory for each component. This is in preparation for adding integration tests. Modify test path in Makefile and tox.ini.