fixed flash notice helper
added access permissions tests