Bug fixes with Slim test