Unit test improvements

Several unit test improvements that I made while implementing the new neuron types. They were in all of those PRs, so I pulled them out into a separate PR to make those merges easier.