SPA application homework with some basic unit tests.