Tests for tf_dics