Added digital self test