Fix tests with newer automake