NSDictionary safe getters + unit tests