Move testing statement outside of 'if'

For easier debugging.
add tests