enable -Wall for tests
Add const for pointers