Added more tests

Review by @jspam please
{nit} I think it's commonly called "dangling else"