Feature tests

This behavior should be encapsulated in a function, especially because this pattern repeats itself over and over in this file.