Added tests for metadata (failing atm)