progress on #135 - fixed test and remote functionality by using creating variable for the function call