Adds bokchoy tests for outline and fixes staff outline bug

@cahrens @andy-armstrong please review.
Thanks for adding this! It makes the code much clearer to read as well as being more robust.