Exceptions tests. Helpers tests