test for fs and bug fixes found when writing said test