Add tests
Factor out file manager test for consistency