Application Exception and tests created.

Signed-off-by: Emerson Max <emersonmx@gmail.com>