test default_device for None, fix #17