mobile.getAttribut: add tests to prevent errors