Add tests for check/get free thread stack

The numbers almost match, but I figured it was not really worth trying to make them exact.

-[Unknown]