Test the top-level SPMA component

It lacked unit tests.