Added smoke test
Added 404 to smoketest
added in dir var
some bug