Fix ApduHandler and Test.Java for testing Read and Write