prepared test and doc environment
moved directive to single file