Added Api Controller tests