Add some tests and silence warnings