Add some js tests for polymorphism