update Ceylon test code
Tests for #169
Fix #169 - look for nested declarations