better order + tests for constructor definition and its prototype