Fix 1/21
Fix 2/21
Fix 3/21
Fix 5/21
Fix 6/21
Fix 7/21

Note that the tests must be changed too.
Fix 8/21
Fix 9/21
Fix 10/21
Fix 12/21
Fix 13/21
Fix 14/21
Fix 15/21
Fix 16/21

Say that I only do what the above function does. Since I'm checking the
configuration, which by definition keeps state, I want to see that my functions
operate properly under a scenario of detach/attach. This can be considered as a
functional test.
Fix 17/21
Fix ?/21
Fix 18/21