Add subdir-objects option to Makefile.am

I added AUTOMAKE_OPTIONS = subdir-objects to src/tests/Makefile.am to avoid errors in configuring