Added mocked test for fstat command.