Added boundaries to phi_nn
Test changes