fixing some unused variable warnings
fix circular require warnigs
fixing URI warnings
fix duplicate test name
fix shadowed variable warnings and ambiguous grammar warnings
fix duplicate test names
remove duplicate test
fixing indentation warnings
eliminate warnings around setting the external encoding
remove dead (unused) code and variables
fix shadowed variables
fix test names and remove unnecessary comments
Merge branch 'warnings'

Closes #695