Fix leaks on some error cases
ColTab -> color_table
Add failure cases to tests