Fixed the unit test stuff to work better with automake.