Remove test target and unused error.hpp