Depend on libnative when testing

The stdtest binary uses both libnative and libgreen to test the two
implementations

Closes #11843