Adding tests for opening and closing stores