refactor style routes + tests
add todo note about testing source.invalidate