Testing logginh and PAG