Add deployment dir consistency checks in function test