tests for partially qualified types/functions and file with line number

Tests for #197 and #198