An example of unit testing JS