More tests. Found bug in (list) case for '() input and rules expecting a non-empty list.