Fix crypto_box_open_afternm

The `crypto_box_beforenm` and `crypto_box_afternm` methods weren't tested, and the `crypto_box_open_afternm` method did not work. These commits introduce tests for them and fix the issue with `crypto_box_open_afternm`.