Added inspect.ts with tests