Fix typo and add stubs to typescript test sources