This commit relocates unit tests to a folder structure that matches the source code structure. Fixes #1128