fixed up bug. added regression tests
add test to make sure the correct migration gets executed