tests for fstat and friends
impl for fstat and friends
updated todo