fixed bugs exposed by trying to use epics_interface
added simple test of spec scan using epics PV emulator