add some first unit tests, fix returned header