file opening + tests done