813 tests file edit

fixes #813.
merging #812 is required for this one.