Bug in filter/chain.hh

Wrote a simple test that shows that chain doesn't work.

Also added filter/concatenate to CMakeLists.txt