Executing test in subprojects

I believe the answer to my own question is this although it does not work for me.