Adding testling hooks