Fixed travis build process.
coveralls badge will now be displayed correctly.
Split tests into functional and unit tests. Created support modules for tests.