fix tests on function existence
add android detection to is method