session factory spec and remove unneeded files