Moved function into home activity test