an attempt at implement unit test for wiegand read. needs refactoring but should work fine