added test for at-rules; bug fixes