Fixing scriptlets and adding tests

- Ordering for userdel/groupdel is crucial
- fixed copy n paste errors