add tests for inserting rules into mediaqueries