add ``if'' block test and fix bugs
Hello, coverall!