Updated auto_method to accept path parameter and updated tests