Use locally linked version of tests.

Otherwise they pick up the installed libraries, which may be different