Exception class wasn't included properly

Exception should be included through `use` ir `\` statement. Added test cases.