test files

fixed a few potential errors also.