Testing some design patterns