added test function to BookScan activity