fixed not found index bug, added not found tests