Even if there was such a test - merely being "told" what your so called ideal career is will not get you that career. It would - if it were possible - only point you vaguely in the right direction. The journey between knowing what you want to do and then getting it is fraught with potential traps and hold ups but these can be avoided or minimised by a really good planning process. Sadly this is NOT taught in our education system. Career guides so often follow the dots of their own training in the subject and use a process of "matching" person to job opportunities. There is nothing wrong with this per se except that it does not encourage or train the individual to manage their own career - whether or not they are self employed.
By the sound of things this is going to become more and more important
Young people in school today will face a world in which more and more people work for themselves, work in small groups and sometimes for more than one company and change occupations from time to time. It is going to be an exciting world but a different one and we must prepare them for it. Lord Young (Prime Minister’s advisor on enterprise).
There is some value in doing psychometric tests , personality tests and interest inventories as part of the process of career examination and planning. However, expecting these things to somehow bring "the answer to all your career troubles and concerns and aspirations" is complete folly.
No - what is really needed is a process of SELF discovery so that an organic and holistic process can seed from within.
This means that the career builds around you rather than you attempting to "fit" ( or squash) yourself into whatever square box appears.