adding test for check of serial and device null