Add subdir-objects option to Makefile.am

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