Add assertions to unit tests
Opt in to strict mode
Remove debugging statement
Rename internal variables