update failWhen(), change ß(typeof to E(typeof var)

√ Make failWhen() work with E(typeof var) and SystemLogger.
√ Update test.js to pass failWhen() and E(typeof var)