Design and test of a compact prototype system for nonlinear microscopy