Add test for inner class pojos