Adding test for pragma key on attach