Fixed tests verifying if errors where thrown (Cannot use junit expected rule or annotation, as thrown errors are collected by APE and handled in @After event).