Fixing tests target linker flags