adding complex unit tests on matrix and subs for all lu calls