added test to set and get using cardreader instance