added a small test for metadata table

+ split fillItems method in Table controller to be able to test it