TODO =========== create more regression tests ---------------- Currently only some simple tests exist. Most of the testing has been via the examples