Fixed two errors which were discovered by trying to run the code in "strict" mode, which is automatically done by Jest testing framework.
Fixed two errors which were discovered by trying to run the code in "strict" mode, which is automatically done by Jest testing framework.