improved config construction, added anonymous parameter to tests