Added tests and updates for at rule factories