#298 JS return type changes with test cases