Makefile now compiles tests. Fixed test files. Removed unused stuff.
Configured Travis to run unit tests.
Removed duplicate consts.