Added tests for doctor and implemented basic doctor features