Method newType() of Cache become two methods: addType() and setType().
Change tests to get in consideration methods addType() and setType() of Cache.