Add test for handling background with position declarations