Tests, error throwing, closure