PreKeyRecord storage and unit tests