metadata methods implemented, tests working