Adds bokchoy tests for outline and fixes staff outline bug

@cahrens @andy-armstrong please review.
Can you just add a comment to the code with this explanation?