Add tests
complex -> optimised