add get invalid and test for it