miscellanea: a unit test, @abstractmethod decorators, shebang invocation, &c.

The pull request contains a few things that came to mind whilst I looked over the codes.