remove ifdef define with pragma once
add catch test framework
add example tests that proves it work
add test target to Makefile