[BUG #6865] Removed test for deprecated env key
[BUG #6865] Replaced deprecated method
[BUG #6865] Fixed doc link
some doc formatting