Added not found handle.

Handle not found and added the corresponding test for it.