test: add test for overloading logical negation operator