Extract tests from main js
Merge revivers and prototypes as metadata
Merge transient fields info into classes metadata
Relocate private methods