WIP: changed cmake file to add tests
WIP: added test data
WIP: fixed compiler bugs