[PATCH v5 7/8] tests: Add testing of pre-shared key lifecycle