Adding test for indented pattern-matching functions and fixing it.