adding tests for mixed functions