Added basic unit testing

The directory structure was rearranged in order to build a static library.