Work on issue #18. Added unit tests for spacefs methods so we can then rewrite them to not hold the whole object in memory and make sure we dont break anything.