Writing Test for a simple component

Here is the code used in the episode.