solves issue #371

1. deprecated assertEquals is changed to assertEqual.
2. Files that are opened using the load function are closed.
Can you please revert or remove the changes you made to this file?