updated test
copied from demo