Added support and testing for plans endpoint