Valid configuration

we keep the truth of the configuration into store. we should valid the configuration using that piece of information.
Yeah I meant scope the test to this function. It's OK for now as is I guess