new test api for managing test and marks