add tests for the polymorphic_path method