Fixed test values with ``ifelse``

By using ``__call__`` instead of ``make_node``, test values are properly
set.
PEP8
Added regression test