Ported advanced tests

And implemeted associated functions in the manager.