Change custom target for building tests from 'test' to 'tests' (fixes issue #428).