smaller test program that creates the same error