add test target to cmake and enable in travis