Test added.
Tests XD0036 is raised if select result in p:variable does not match required type even if the variable is not used.