Completed Complex class template implementation and tests