testing the nn constructor