Fixes `or` to always return the last expression regardless.
Adds tests for logic module.