some tests for nest_api