testing runtime name constraint