moved specialization to namespace scope
minor tweaks to get tests compiling for clang