Rudimentary enforcement and some tests