Add unittest to verify remote stat on misc fd types

Fixes #8