small changes for REST testing
form imput fix
excpetions added into APiController