Added unit test and moved static config defines to methods in PNConfig.m