adds check for API level; stops test if device is 'android' but API < 17

separates checkApiLevel functionality and cleans up little bits

cleans up the last bits
Merge pull request #1626 from rockbot/master

adds check for API level; stops test if device is 'android' but API < 17