Refactor adaptor & basestar tests to cleaner pure JS style