added DialogAccessor.cs and modified tests