* refactor test
* use chai assertion for tests
* extend file creation tests