Cleaned up poissonTest

Made initialising depend on shape supplied