Move tests out of src; add noinst Automake rules