Removing invalid test case as it is caught earlier.
Emit event on open...
Breaking up create method a bit. Hopefully more testable in the future.