Merged uack test into rt_cascading

Also did some refactoring of original version, removed redundant function calls, etc.