Corrected keystorage tests