shameless implentation of all tests PRE-REFACTOR