Create test suite

I've missed a few `fs_` functions, but coverage is significantly higher
and the tests are actually split up in a modular fashion. :)