fix bug in _new_spiketrain
improve unit tests for neo core
improve unittest coverage for neo core